package com.rqstmx97.playerpos.mcbukkit.kr;

import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;

public class GetPlayerPos extends JavaPlugin {
	private static GetPlayerPosCommand command;
	
	public void onEnable() {
		initCommand();
		//Show "enabled" message at console
		PluginDescriptionFile pdfFile = this.getDescription();
		System.out.println(pdfFile.getName() + " " + pdfFile.getVersion() + " " + "loaded Successfully!");
	}
	
	public void onDisable() {
		//Show "disabled" message at console
		PluginDescriptionFile pdfFile = this.getDescription();
		System.out.println(pdfFile.getName() + " " + pdfFile.getVersion() + " "  + "unloaded Successfully!");
	}
	
	public void initCommand() {
		command = new GetPlayerPosCommand(this);
		getCommand("getplayerpos").setExecutor(command);
	}
}
